package com.gof.example.algorithm;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/13 15:31.
 * haiming.fei@tongdun.cn
 */
public class Fighter extends AirplaneBehaviour {

    public Fighter(String name) {
        super(name);
    }

    @Override
    public void howTakeoff() {
        System.out.println(TakeOff.LongDistanceTakeOff.getName());
    }

    @Override
    public void howFly() {
        System.out.println(Fly.SuperSonicFly.getName());
    }
}
